﻿@using BonjourQuotation.UI.Models.CustomerModel
@model ManageCustomerQuotationsGridViewModel
<div style="width: 941px; min-height: 200px; max-height: 516px; margin: auto; padding-bottom: 30px; margin-left: 9px; ">
    <table class="table table-bordered table-hover table-condensed" style="margin-bottom: -1px !important; width: 920px;background-color:white;">
        <thead>
            <tr>
                <th width="8%;" class="GridHeaders font12">QuotaID</th>
                <th width="14%;" class="GridHeaders font12">Quota Code</th>
                <th width="30%;" class="GridHeaders font12">Quota Name</th>
                <th width="7%;" class="GridHeaders font12">Accepted</th>
                <th width="10%;" class="GridHeaders font12">Arrival</th>
                <th width="10%;" class="GridHeaders font12">Departure</th>
                <th width="7%;" class="GridHeaders font12">Nights</th>
                <th width="7%;" class="GridHeaders font12">Meals</th>
                <th width="7%;" class="GridHeaders font12"></th>
            </tr>
        </thead>
    </table>
    <div style="height:450px; overflow-y:auto;">
        <table class="table table-bordered table-hover table-condensed" style="width: 920px; table-layout: fixed; background-color: white;">
            <tbody>
                @for (int ind = 0; ind < Model.Rows.Count; ind++)
                {
                    <tr>
                        <td width="8%;">@Html.LabelForModel(Model.Rows[ind].QuotaID, new { @class = "table_inputs_70 FSizeForGroupTable", @style = "text-align: left" })</td>
                        <td width="14%;">@Html.LabelForModel(Model.Rows[ind].QuotaCode, new { @class = "table_inputs_125 FSizeForGroupTable", @style = "text-align: left" })</td>
                        <td width="30%;">@Html.LabelForModel(Model.Rows[ind].QuotaName, new { @class = "table_inputs_270 FSizeForGroupTable", @style = "text-align: left" })</td>
                        <td width="7%;">@Html.LabelForModel(Model.Rows[ind].Accepted ? "Yes" : "No", new { @class = "table_inputs_60 FSizeForGroupTable", @style = "text-align: left" })</td>
                        <td width="10%;">@Html.LabelForModel(Model.Rows[ind].ArrivalDate, new { @class = "table_inputs_90 FSizeForGroupTable", @style = "text-align: left" })</td>
                        <td width="10%;">@Html.LabelForModel(Model.Rows[ind].DepartureDate, new { @class = "table_inputs_90 FSizeForGroupTable", @style = "text-align: left" })</td>
                        <td width="7%;">@Html.LabelForModel(Model.Rows[ind].Nights, new { @class = "table_inputs_60 FSizeForGroupTable", @style = "text-align: left" })</td>
                        <td width="7%;">@Html.LabelForModel(Model.Rows[ind].Meals, new { @class = "table_inputs_60 FSizeForGroupTable", @style = "text-align: left" })</td>
                        <td width="7%;" style="text-align:center"><button class="btn14 btn50 btnheight22" type="button" onclick=GoToQuotation(@Model.Rows[ind].QuotaID)>-></button></td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
</div>